package com.fn1.freelearning.controller;

import org.springframework.stereotype.Controller;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.fn1.freelearning.model.JSONStatus;

@Controller
@Transactional
@RequestMapping(value = "/userController")
public class UserController {

	@RequestMapping(value = "/login")
	public @ResponseBody JSONStatus login(String userId, String password) {
		JSONStatus jsonStatus = new JSONStatus();
		
		jsonStatus.setSuccess(true);
		
		return jsonStatus;
	}
}
